using System;
using System.IO;
using System.Text;

using VitaReader;

namespace VitaReaderLibPS
{	
    public class ReaderLanguage
    {
		String mCancel;
		String mOK;
		
		String mTitleError;
		String mTitleSuccess;
		String mTitleConfirm;
		String mTitleInput;
		
		String mMsgFileNotFound;
		String mMsgDeleteBookConfirm;
		String mMsgDeleteBookMarkConfirm;
		String mMsgInputServerAddress;
		String mMsgGoodConnection;
		String mMsgBadConnection;
		String mMsgDownloadFinishNotification;
		
		public String Cancel				{get {return mCancel;}}
		public String OK					{get {return mOK;}}
		public String TitleConfirm			{get {return mTitleConfirm;}}
		public String TitleInput			{get {return mTitleInput;}}
		public String TitleError			{get {return mTitleError;}}
		public String TitleSuccess			{get {return mTitleSuccess;}}
		
		public String MsgFileNotFound		{get {return mMsgFileNotFound;}}
		public String MsgDeleteBookConfirm	{get {return mMsgDeleteBookConfirm;}}
		public String MsgInputServerAddress	{get {return mMsgInputServerAddress;}}
		public String MsgDeleteBookMarkConfirm	{get {return mMsgDeleteBookMarkConfirm;}}
		public String MsgGoodConnection		{get {return mMsgGoodConnection;}}
		public String MsgBadConnection		{get {return mMsgBadConnection;}}
		public String MsgDownloadFinish		{get {return mMsgDownloadFinishNotification;}}
		
		
		public void UpdateLanguage(StreamReader reader)
		{
			mCancel = reader.ReadLine();
			mOK = reader.ReadLine();
			
			mTitleConfirm = reader.ReadLine();
			mTitleError = reader.ReadLine();
			mTitleSuccess = reader.ReadLine();
			mTitleInput = reader.ReadLine();
			
			mMsgFileNotFound = reader.ReadLine();
			mMsgDeleteBookConfirm = reader.ReadLine();
			mMsgDeleteBookMarkConfirm = reader.ReadLine();
			mMsgInputServerAddress = reader.ReadLine();
			
			mMsgGoodConnection = reader.ReadLine();
			mMsgBadConnection = reader.ReadLine();
			mMsgDownloadFinishNotification = reader.ReadLine();
		}
	}//class
}